home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9799 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: hoho.quake.net!usenet
  2. From: gomberg@wcf.com
  3. Newsgroups: comp.lang.misc,comp.lang.c,comp.lang.pl1
  4. Subject: Re: GOTO controversy
  5. Date: 13 Mar 1996 16:46:58 GMT
  6. Organization: QuakeNet Internet Services (email info@Quake.Net)
  7. Message-ID: <4i6u62$sof@hoho.quake.net>
  8. References: <rcshlds.1.000A6705@mailserv.mta.ca> <Dn8pJ8.nqs@emi.net> <4grt4e$8fg@goanna.cs.rmit.EDU.AU> <4hl8mt$4po@newshost.cyberramp.net> <DnwCxp.84C@clw.cs.man.ac.uk> <4hsco0$rj5@hoho.quake.net> <3144D1F7.E64@axonet.com.au>
  9. Reply-To: gomberg@wcf.com
  10. NNTP-Posting-Host: l87.ip.quake.net
  11. X-Newsreader: IBM NewsReader/2 v1.09
  12.  
  13. In <3144D1F7.E64@axonet.com.au>, Andrew Dalgleish <andrewd@axonet.com.au> writes:
  14. >> And I would assert my code is (1) a lot more PL/1-like and
  15. >> (2) a lot easier to understand.
  16. >
  17. >1. I assume you have #define'd "do" and "end" as "{" and "}".
  18. >How do you encode "do {...} while(...);" ?
  19. >2. The extra semi-colons after each do & end don't achieve anything.
  20. >3. What does "<>" mean in C ?
  21.  
  22. And I would assert my code is a lot more PL/I like.
  23. >
  24. >Otherwise, this is one example where you can remove goto's without loss 
  25. >of speed and improve clarity.
  26. >This doesn't mean you should never use goto's.
  27.  
  28. But it was presented as a case where gotos were better.  Sigh.
  29.  
  30. An assembler maven walked into a bar and asked the bartender: "Do you want
  31. to hear a PL/I programmer joke?"
  32.  
  33. The bartender was a big fellow with a baseball bat behind the bar which he 
  34. used for crowd control.  "Hey, wait a minute!" the bartender said.  "I am a
  35. PL/I programmer.  And see that fellow over at the pool table?  He's a PL/I
  36. programmer too."  The maven glanced over towards the table and saw a
  37. six-foot-six refugee from the Ohio State offensive line wearing a XXXXL 
  38. tee shirt that was a few sizes too small.  "And check out Fred over by the
  39. juke box, he's a PL/I programmer himself".   The visitor looked over to the
  40. juke box and Fred wearing leathers and had a chain hanging from his belt.
  41.  
  42. "Now do you still want to tell a PL/I programmer joke?" the bartender asked.
  43.  
  44. "Naw," the visitor replied.  "I don't want to have to explain it three times."
  45.  
  46.  
  47.